package com.innovation.wjrpc.example;

/**
 * @author innoyiya
 * @date 2021/3/6 16:47
 */
public class CalcServiceImpl implements CalcService {

    @Override
    public int add(int num1, int num2)  {
        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return num1 + num2;
    }

    @Override
    public int minus(int num1, int num2){
        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return num1 - num2;
    }
}
